import request from '@/utils/request'

// 创建作品分类
export function createInfoProductionType(data) {
  return request({
    url: '/alipay/info-production-type/create',
    method: 'post',
    data: data
  })
}

// 更新作品分类
export function updateInfoProductionType(data) {
  return request({
    url: '/alipay/info-production-type/update',
    method: 'put',
    data: data
  })
}

// 删除作品分类
export function deleteInfoProductionType(id) {
  return request({
    url: '/alipay/info-production-type/delete?id=' + id,
    method: 'delete'
  })
}

// 获得作品分类
export function getInfoProductionType(id) {
  return request({
    url: '/alipay/info-production-type/get?id=' + id,
    method: 'get'
  })
}

// 获得作品分类分页
export function getInfoProductionTypePage(query) {
  return request({
    url: '/alipay/info-production-type/page',
    method: 'get',
    params: query
  })
}

// 导出作品分类 Excel
export function exportInfoProductionTypeExcel(query) {
  return request({
    url: '/alipay/info-production-type/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
